package com.example.yuntiku.Service;

import com.example.yuntiku.dao.impl.TestrecordDaoImpl;
import com.example.yuntiku.entity.Testrecord;

public class TestrecordService {
    TestrecordDaoImpl testrecordDao = new TestrecordDaoImpl();
    public int insertTestrecord(Testrecord testrecord){
        return testrecordDao.insertTestrecord(testrecord);
    }
    public int updateTestrecord(int correct,int id){
        return testrecordDao.updateTestrecord(correct,id);
    }

    public Testrecord selectByUserIdAndExamId(int userId,int examId){
        return testrecordDao.selectByUserIdAndExamId(userId,examId);
    }

    public int update(Testrecord testrecord){
        return testrecordDao.update(testrecord);
    }
}
